package com.github.soiff.shadow.plugin.calc;

import com.github.jknack.handlebars.Handlebars;

/**
 * Created by Soiff on 2016/05/20.
 *
 * @author : Soiff
 */
public class Logics {

    public Logics() {
    }

    public static boolean or(Object a, Object b) {
        boolean bA = !Handlebars.Utils.isEmpty(a);
        boolean bB = !Handlebars.Utils.isEmpty(b);
        return bA || bB;
    }

    public static boolean and(Object a, Object b) {
        boolean bA = !Handlebars.Utils.isEmpty(a);
        boolean bB = !Handlebars.Utils.isEmpty(b);
        return bA && bB;
    }
}
